package com.hue.netty.day03.tcpprotocol;

/*
    自定义TCP数据包
 */
public class MessageProtocol {
    private int len;
    private byte[] buffer;

    public MessageProtocol() {
    }

    public MessageProtocol(int len, byte[] buffer) {
        this.len = len;
        this.buffer = buffer;
    }

    public int getLen() {
        return len;
    }

    public void setLen(int len) {
        this.len = len;
    }

    public byte[] getBuffer() {
        return buffer;
    }

    public void setBuffer(byte[] buffer) {
        this.buffer = buffer;
    }
}
